#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include<QPropertyAnimation>
#include"commonpage.h"
namespace Ui {
class btform;
}

class btform : public QWidget
{
    Q_OBJECT

public:
    explicit btform(QWidget *parent = nullptr);
    ~btform();
    // btform.h 新增
    // 按钮id：该按钮对应的page⻚
    int id = 0;

    // 设置图标 ⽂字 id
    void seticon(QString btIcon,QString content,int mid);
    int getId();
    void showAnimal();

    void clearBg();
    virtual void mousePressEvent(QMouseEvent *event);
private:
    QPropertyAnimation *animationLine1;
    QPropertyAnimation *animationLine2;
    QPropertyAnimation *animationLine3;
    QPropertyAnimation *animationLine4;
signals:
    void click(int pageid);


private:
    Ui::btform *ui;
};

#endif // BTFORM_H
